= header_tag('格子列表')

.row
  %table.table.table-striped.table-bordered.table-hover{ 'data-source' => '/grids.json', id: "grids_datatable" }
    %thead
      %tr
        %th 编码
        %th 名称
        %th 创建时间
        %th 操作
    %tbody

= link_to '新建格子', new_cpanel_grid_path, class: "btn btn-outline btn-primary"

:javascript
  $(function(){
    CPANEL.Grids.DataTable.init();
  });
